package com.vimi8.chick.plugins.model

import android.content.ComponentName
import com.eros.framework.utils.JsPoster
import com.taobao.weex.bridge.JSCallback

open class DownloadServiceListener(private val jsCallback: JSCallback) : IDownloadService {
    override fun onServiceConnected(name: ComponentName?) {
        JsPoster.postSuccess("开始下载", jsCallback)
    }

    override fun onServiceDisconnected(name: ComponentName?) {
        JsPoster.postFailed("下载失败", jsCallback)
    }

    override fun onError() {
        JsPoster.postFailed("下载失败", jsCallback)
    }
}
